<%@ page language="java" import="java.util.*,service.*,model.*" pageEncoding="UTF-8"%>
<%
	List<SaleData> top = FriendSale.sortByPrice();	
%>




<div style="float: left;" class="ph_left">
	   		<h3>排序</h3>
			<div style="" class="ph_area">
				<p onclick="javascript:window.location.href='/~slave/top.php?type=price&amp;gender=';" style="cursor: pointer;" class="pbg"><img alt="身价最贵的" src="http://img.kaixin001.com.cn/i/slave/px1.gif" align="absmiddle"> 身价最贵的</p>
				<p onclick="javascript:window.location.href='/~slave/top.php?type=lasttime&amp;gender=&amp;range=friend';" style="cursor: pointer;" onmouseout='this.className="";' onmouseover='this.className="pbg0";' class=""><img alt="最新被买" src="http://img.kaixin001.com.cn/i/slave/px2.gif" align="absmiddle"> 最新被买</p>
				<p onclick="javascript:window.location.href='/~slave/top.php?type=asset&amp;gender=&amp;range=friend';" style="cursor: pointer;" onmouseout='this.className="";' onmouseover='this.className="pbg0";' class=""><img alt="资产最多" src="http://img.kaixin001.com.cn/i/slave/px3.gif" align="absmiddle"> 资产最多</p>
				<p onclick="javascript:window.location.href='/~slave/top.php?type=cash&amp;gender=&amp;range=friend';" style="cursor: pointer;" onmouseout='this.className="";' onmouseover='this.className="pbg0";' class=""><img alt="现金最多" src="http://img.kaixin001.com.cn/i/slave/px4.gif" align="absmiddle"> 现金最多</p>
				<p onclick="javascript:window.location.href='/~slave/top.php?type=discountnum&amp;gender=&amp;range=friend';" style="cursor: pointer;" onmouseout='this.className="";' onmouseover='this.className="pbg0";' class=""><img alt="折扣最多" src="http://img.kaixin001.com.cn/i/slave/discount.gif" align="absmiddle"> 折扣最多</p>
			</div>
			<h3>性别</h3>
			<div class="ph_area">
				<p onclick="javascript:window.location.href='/~slave/top.php?type=price&amp;gender=&amp;range=friend';" style="cursor: pointer;" class="pbg"><img alt="全部" src="http://img.kaixin001.com.cn/i/slave/px5.gif" align="absmiddle"> 全部</p>
				<p onclick="javascript:window.location.href='/~slave/top.php?type=price&amp;gender=1&amp;range=friend';" style="cursor: pointer;" onmouseout='this.className="";' onmouseover='this.className="pbg0";' class=""><img alt="女奴隶" src="http://img.kaixin001.com.cn/i/slave/px6.gif" align="absmiddle"> 女奴隶</p>
				<p onclick="javascript:window.location.href='/~slave/top.php?type=price&amp;gender=0&amp;range=friend';" style="cursor: pointer;" onmouseout='this.className="";' onmouseover='this.className="pbg0";' class=""><img alt="男奴隶" src="http://img.kaixin001.com.cn/i/slave/px7.gif" align="absmiddle"> 男奴隶</p>
			</div>
			<h3>范围</h3>
			<div class="ph_area">
				<p onclick="javascript:window.location.href='/~slave/top.php?type=price&amp;gender=&amp;range=friend';" style="cursor: pointer;" class="pbg"><img alt="仅好友" src="http://img.kaixin001.com.cn/i2/friend.gif" align="absmiddle"> 仅好友</p>
				<p class="" onclick="javascript:window.location.href='/~slave/top.php?type=price&amp;gender=&amp;range=all';" style="cursor: pointer;" onmouseout='this.className="";' onmouseover='this.className="pbg0";'><img alt="所有人" src="http://img.kaixin001.com.cn/i2/all_people.gif" align="absmiddle"> 所有人</p>
				
			</div>
	   </div>
	   
	   
	   <div style="float: right;" class="ph_right">
	   		<div class="ph_list">
		 	<div style="padding-top: 8px;" class="l f14">奴隶排行</div>
			
			<div class="c"></div>
			</div>
<%
	for(SaleData data:top){
	
%>
		 <div class="ph_list2">
		 	<div class="dealimg2"><img src="<%=data.getPerson().getThumbnail()%>" height="50" width="50"></div>
			<div style="width: 500px; line-height: 180%;" class="ml10 l">
				<div class="w265 l c6">
					<div onmouseout="javascript:$('img135140').style.display='none';" onmouseover="javascript:$('img135140').style.display='block';">
						<div class="l"><strong><a class="sl2" href="/%7Eslave/index.php?uid=135140"><%=data.getPerson().getName()%></a></strong> </div>
						<div onclick="javascript:window.location.href='/home/?uid=135140';" style="padding: 3px; display: none; cursor: pointer;" id="img135140" class="l"><img alt="赵星的开心网首页" src="http://img.kaixin001.com.cn/i/slave/house.gif" align="absmiddle"></div>
						<div class="l">&nbsp;&nbsp;</div>
						<span class="c9 l">( 她是威达的奴隶 )</span>
					</div>
					<div class="c"></div>
					<i class="c9"><%=(data.getStatus()==null?"":data.getStatus())%></i><br>
					身　价：<strong class="dgreen">¥<%=data.getPrice()%></strong><br>
					<!--总资产：<strong class="dgreen">¥40777</strong><br>-->
					现　金：<strong class="dgreen">¥<%=data.getCash()%></strong><br>
					奴隶数：<strong class="dred"><%=data.getSlaves().size()%></strong><br>
				</div>
				<div class="r">
					<div class="wysft2"><span onclick="javascript:buyslave(135140);" style="cursor: pointer;">我要购买她</span></div>
				</div>
				<div class="c"></div>
				<div class="djl">
					<!--<div class="l">
						从 <a class="sl2" href="/%7Eslave/index.php?uid=415138">丁思瑜</a> 手中花<span class="dgreen"><strong>¥</strong>39200</span> 购买
					</div>
					<div class="gw13">2008-11-10 15:58</div>-->
				</div>
			</div>
			<div class="c"></div>
		 </div>
<%}%>
		 
	   </div>